﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Card
/// </summary>
    public enum CardSuit
    {
        Hearts,
        Spades,
        Clubs,
        Diamonds
    }

    public enum CardRank
    {
        ace = 1,
        two = 2,
        three = 3,
        four = 4,
        five = 5,
        six = 6,
        seven = 7,
        eight = 8,
        nine = 9,
        ten = 10,
        jack = 11,
        queen = 12,
        king = 13
    }

    public class Card
    {
        private CardSuit _suit;
        private CardRank _rank;

        public CardSuit Suit { get { return _suit;} set { _suit = value; } }
        public CardRank Rank { get { return _rank;} set { _rank = value; } }
        public Card(CardSuit suit, CardRank rank)
        {
            _suit = suit;
            _rank = rank;
        }

        public static string Plural(CardRank rank)
        {
            if (rank == CardRank.six)
                return "sixes";
            else
                return rank.ToString() + "s";
        }
    }
